<HTML>
<HEAD>
<meta charset="UTF-8">
<title>ConfirmPaymentIntentParams.createWithSourceId - stripe</title>
<link rel="stylesheet" href="../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">stripe</a>&nbsp;/&nbsp;<a href="../index.html">com.stripe.android.model</a>&nbsp;/&nbsp;<a href="index.html">ConfirmPaymentIntentParams</a>&nbsp;/&nbsp;<a href="./create-with-source-id.html">createWithSourceId</a><br/>
<br/>
<h1>createWithSourceId</h1>
<a name="com.stripe.android.model.ConfirmPaymentIntentParams.Companion$createWithSourceId(kotlin.String, kotlin.String, kotlin.String, kotlin.Boolean, kotlin.collections.Map((kotlin.String, kotlin.Any)), com.stripe.android.model.ConfirmPaymentIntentParams.Shipping)"></a>
<code><span class="identifier">@JvmOverloads</span> <span class="identifier">@JvmStatic</span> <span class="keyword">fun </span><span class="identifier">createWithSourceId</span><span class="symbol">(</span><span class="identifier" id="com.stripe.android.model.ConfirmPaymentIntentParams.Companion$createWithSourceId(kotlin.String, kotlin.String, kotlin.String, kotlin.Boolean, kotlin.collections.Map((kotlin.String, kotlin.Any)), com.stripe.android.model.ConfirmPaymentIntentParams.Shipping)/sourceId">sourceId</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">, </span><span class="identifier" id="com.stripe.android.model.ConfirmPaymentIntentParams.Companion$createWithSourceId(kotlin.String, kotlin.String, kotlin.String, kotlin.Boolean, kotlin.collections.Map((kotlin.String, kotlin.Any)), com.stripe.android.model.ConfirmPaymentIntentParams.Shipping)/clientSecret">clientSecret</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">, </span><span class="identifier" id="com.stripe.android.model.ConfirmPaymentIntentParams.Companion$createWithSourceId(kotlin.String, kotlin.String, kotlin.String, kotlin.Boolean, kotlin.collections.Map((kotlin.String, kotlin.Any)), com.stripe.android.model.ConfirmPaymentIntentParams.Shipping)/returnUrl">returnUrl</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">, </span><span class="identifier" id="com.stripe.android.model.ConfirmPaymentIntentParams.Companion$createWithSourceId(kotlin.String, kotlin.String, kotlin.String, kotlin.Boolean, kotlin.collections.Map((kotlin.String, kotlin.Any)), com.stripe.android.model.ConfirmPaymentIntentParams.Shipping)/savePaymentMethod">savePaymentMethod</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="com.stripe.android.model.ConfirmPaymentIntentParams.Companion$createWithSourceId(kotlin.String, kotlin.String, kotlin.String, kotlin.Boolean, kotlin.collections.Map((kotlin.String, kotlin.Any)), com.stripe.android.model.ConfirmPaymentIntentParams.Shipping)/extraParams">extraParams</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html"><span class="identifier">Map</span></a><span class="symbol">&lt;</span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">,</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html"><span class="identifier">Any</span></a><span class="symbol">&gt;</span><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="com.stripe.android.model.ConfirmPaymentIntentParams.Companion$createWithSourceId(kotlin.String, kotlin.String, kotlin.String, kotlin.Boolean, kotlin.collections.Map((kotlin.String, kotlin.Any)), com.stripe.android.model.ConfirmPaymentIntentParams.Shipping)/shipping">shipping</span><span class="symbol">:</span>&nbsp;<span class="identifier">Shipping</span><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">)</span><span class="symbol">: </span><a href="index.html"><span class="identifier">ConfirmPaymentIntentParams</span></a></code>
<p>Create the parameters necessary for confirming a PaymentIntent with an
existing <a href="../-source/index.html">Source</a>.</p>
<h3>Parameters</h3>
<p><a name="sourceId"></a>
<code>sourceId</code> - the ID of the source that is being attached to the PaymentIntent being
confirmed</p>
<p><a name="clientSecret"></a>
<code>clientSecret</code> - client secret from the PaymentIntent being confirmed</p>
<p><a name="returnUrl"></a>
<code>returnUrl</code> - the URL the customer should be redirected to after the authorization
process</p>
<p><a name="savePaymentMethod"></a>
<code>savePaymentMethod</code> - Set to <code>true</code> to save this PaymentIntent’s source to the
associated Customer, if the source is not already attached.
This parameter only applies to the source passed in the same request
or the current source attached to the PaymentIntent and must be
specified again if a new source is added.</p>
<p><a name="shipping"></a>
<code>shipping</code> - Optional. See <a href="-shipping/index.html">Shipping</a>.</p>
</BODY>
</HTML>
